#ifndef __C_STD_VGA_H__
#define __C_STD_VGA_H__

#include "./../std/std.h"

#ifdef __cplusplus
extern "C" {
#endif

// global functions

// clear the vga whole screen (80 x 25)
// the screen will leave black
void vga_clear(void);

// scroll up several lines
void vga_scrollup(uint lncnt);

// put out a char in current position
char vga_putchar(char c);

// put out a string
void vga_puts(const char *str);

// set the color of vga text screen
void vga_setcolor(uint _color);

// get the color of vga test screen
int vga_getcolor(void);

// set position for text input
void vga_setxy(uint x, uint y);

// get the current position for text input
void vga_getxy(uint *x, uint *y);

// clear text screen applying the color
void vga_clrscr(void);

#ifdef __cplusplus
}
#endif
#endif
/* EOF */
